package com.project.communitymanagement.service.impl;

import com.project.communitymanagement.entity.HomeData;
import com.project.communitymanagement.mapper.*;
import com.project.communitymanagement.service.HomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ProjectName: epidemic-prevention-backend
 * @Package: com.project.communitymanagement.service
 * @ClassName: HomeService
 * @Author: "XGP"
 * @Description:
 * @Date: 2022/03/23 14:12
 * @Version: 1.0
 */
@Service
public class HomeServiceImpl implements HomeService {


    @Autowired
    private TbOwnerMapper tbOwnerMapper;
    @Autowired
    @Override
    public HomeData getHomeData() {
        HomeData homeData = new HomeData();
        homeData.setInformationSubmission(tbOwnerMapper.getUserCount());
        return homeData;
    }
}
